#pragma once


#define DYNAMIC_KEYMAP_LAYER_COUNT 10


/* RP2040 PIO Driver, for spilt */
#define SERIAL_PIO_USE_PIO1

/* 
 * Annotation: Ran, TencentQQ:1586042659
 * RP2040 full duplex
 * REF: https://docs.qmk.fm/#/serial_driver?id=usart-full-duplex
 * special: RP2040's default usart tx pin is GP0, rx pin is GP1
 */
#define SERIAL_USART_FULL_DUPLEX
#define SERIAL_USART_TX_PIN GP0
#define SERIAL_USART_RX_PIN GP1

// #define SPLIT_LAYER_STATE_ENABLE
// #define SPLIT_MODS_ENABLE
// #define SPLIT_WPM_ENABLE
// #define SPLIT_OLED_ENABLE

// /* OLED */
// #define OLED_BRIGHTNESS 128
// #define OLED_TIMEOUT 30000

// #define I2C1_CLOCK_SPEED 40000
// #define I2C1_DUTY_CYCLE FAST_DUTY_CYCLE_2


/*
 * the state of keyboard
 * pin set high level is right keyboard
 * pin set low level is left keyboard
 * default : usb-in keyboard is left
 * not verified
 */
// #define SPLIT_HAND_PIN GP21
// #define	SPLIT_HAND_PIN_LOW_IS_LEFT


/* 1000Hz = 1 , 500Hz = 2 , default = 10(100Hz) */
#define USB_POLLING_INTERVAL_MS 1

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE

/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE
